package scau.hotel.hotel_service.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import scau.hotel.hotel_service.entity.CheckinCusInfor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 退房传值类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CheckoutVo {
    /**
     * 入住明细id
     */
    private Integer checkinInforId;
    /**
     * 入住id
     */
    private Integer checkinId;
    /**
     * 退房人姓名
     */
    private String checkinCusName;
    /**
     * 实际退房时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    private Date checkoutDate;
    /**
     * 备注
     */
    private String remark;
    /**
     * 押金
     */
    private BigDecimal cashPledge;
    /**
     * 退房房间的所有入住人
     */
    private List<CheckinCusInfor> checkinCusInforList;
}
